import Vue from 'vue'
import VueRouter from 'vue-router'
import MyGoodsList from '../views/MyGoodsList'
import MyGoodsSearch from '../views/MyGoodsSearch'
import MyUserInfo from '../views/MyUserInfo'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/MyGoodsList'
  },
  {
    path: '/MyGoodsList',
    component: MyGoodsList,
    name:'MyGoodsList'
  },
  {
    path: '/MyGoodsSearch',
    component: MyGoodsSearch,
    name:'MyGoodsSearch'
  },
  {
    path: '/MyUserInfo',
    component: MyUserInfo,
    name:'MyUserInfo'
  },
]

const router = new VueRouter({
  routes,
})

export default router
